import request from '@/utils/request'

export const GetPointService = () => {
  return request.get('/point/list')
}

export const AddPointService = (data) => {
  return request.post('/point/save', data)
}

export const EditPointService = (data) => {
  return request.put('/point/update', data)
}

export const DelPointService = (id) => {
  return request.delete('/point/delete', {
    params: { id }
  })
}

export const GetPointDetailService = (id) => {
  return request.get('/point/findById', {
    params: { id }
  })
}

export const GetPointFindByQueryService = (query) => {
  return request.get('/point/findByQuery', {
    params: { query }
  })
}
